package com.shzu.jwc.ty.bean;

import java.util.ArrayList;
import java.util.List;

public class PaperModelExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PaperModelExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPaperModelIdIsNull() {
            addCriterion("paper_model_id is null");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdIsNotNull() {
            addCriterion("paper_model_id is not null");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdEqualTo(Integer value) {
            addCriterion("paper_model_id =", value, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdNotEqualTo(Integer value) {
            addCriterion("paper_model_id <>", value, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdGreaterThan(Integer value) {
            addCriterion("paper_model_id >", value, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("paper_model_id >=", value, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdLessThan(Integer value) {
            addCriterion("paper_model_id <", value, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdLessThanOrEqualTo(Integer value) {
            addCriterion("paper_model_id <=", value, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdIn(List<Integer> values) {
            addCriterion("paper_model_id in", values, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdNotIn(List<Integer> values) {
            addCriterion("paper_model_id not in", values, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdBetween(Integer value1, Integer value2) {
            addCriterion("paper_model_id between", value1, value2, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdNotBetween(Integer value1, Integer value2) {
            addCriterion("paper_model_id not between", value1, value2, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andPaperModelTimeIsNull() {
            addCriterion("paper_model_time is null");
            return (Criteria) this;
        }

        public Criteria andPaperModelTimeIsNotNull() {
            addCriterion("paper_model_time is not null");
            return (Criteria) this;
        }

        public Criteria andPaperModelTimeEqualTo(Integer value) {
            addCriterion("paper_model_time =", value, "paperModelTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelTimeNotEqualTo(Integer value) {
            addCriterion("paper_model_time <>", value, "paperModelTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelTimeGreaterThan(Integer value) {
            addCriterion("paper_model_time >", value, "paperModelTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("paper_model_time >=", value, "paperModelTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelTimeLessThan(Integer value) {
            addCriterion("paper_model_time <", value, "paperModelTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelTimeLessThanOrEqualTo(Integer value) {
            addCriterion("paper_model_time <=", value, "paperModelTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelTimeIn(List<Integer> values) {
            addCriterion("paper_model_time in", values, "paperModelTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelTimeNotIn(List<Integer> values) {
            addCriterion("paper_model_time not in", values, "paperModelTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelTimeBetween(Integer value1, Integer value2) {
            addCriterion("paper_model_time between", value1, value2, "paperModelTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("paper_model_time not between", value1, value2, "paperModelTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseNumberIsNull() {
            addCriterion("paper_model_choose_number is null");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseNumberIsNotNull() {
            addCriterion("paper_model_choose_number is not null");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseNumberEqualTo(Integer value) {
            addCriterion("paper_model_choose_number =", value, "paperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseNumberNotEqualTo(Integer value) {
            addCriterion("paper_model_choose_number <>", value, "paperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseNumberGreaterThan(Integer value) {
            addCriterion("paper_model_choose_number >", value, "paperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("paper_model_choose_number >=", value, "paperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseNumberLessThan(Integer value) {
            addCriterion("paper_model_choose_number <", value, "paperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseNumberLessThanOrEqualTo(Integer value) {
            addCriterion("paper_model_choose_number <=", value, "paperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseNumberIn(List<Integer> values) {
            addCriterion("paper_model_choose_number in", values, "paperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseNumberNotIn(List<Integer> values) {
            addCriterion("paper_model_choose_number not in", values, "paperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseNumberBetween(Integer value1, Integer value2) {
            addCriterion("paper_model_choose_number between", value1, value2, "paperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("paper_model_choose_number not between", value1, value2, "paperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeNumberIsNull() {
            addCriterion("paper_model_judge_number is null");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeNumberIsNotNull() {
            addCriterion("paper_model_judge_number is not null");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeNumberEqualTo(Integer value) {
            addCriterion("paper_model_judge_number =", value, "paperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeNumberNotEqualTo(Integer value) {
            addCriterion("paper_model_judge_number <>", value, "paperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeNumberGreaterThan(Integer value) {
            addCriterion("paper_model_judge_number >", value, "paperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("paper_model_judge_number >=", value, "paperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeNumberLessThan(Integer value) {
            addCriterion("paper_model_judge_number <", value, "paperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeNumberLessThanOrEqualTo(Integer value) {
            addCriterion("paper_model_judge_number <=", value, "paperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeNumberIn(List<Integer> values) {
            addCriterion("paper_model_judge_number in", values, "paperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeNumberNotIn(List<Integer> values) {
            addCriterion("paper_model_judge_number not in", values, "paperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeNumberBetween(Integer value1, Integer value2) {
            addCriterion("paper_model_judge_number between", value1, value2, "paperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("paper_model_judge_number not between", value1, value2, "paperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseTimeIsNull() {
            addCriterion("paper_model_choose_time is null");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseTimeIsNotNull() {
            addCriterion("paper_model_choose_time is not null");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseTimeEqualTo(Integer value) {
            addCriterion("paper_model_choose_time =", value, "paperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseTimeNotEqualTo(Integer value) {
            addCriterion("paper_model_choose_time <>", value, "paperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseTimeGreaterThan(Integer value) {
            addCriterion("paper_model_choose_time >", value, "paperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("paper_model_choose_time >=", value, "paperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseTimeLessThan(Integer value) {
            addCriterion("paper_model_choose_time <", value, "paperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseTimeLessThanOrEqualTo(Integer value) {
            addCriterion("paper_model_choose_time <=", value, "paperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseTimeIn(List<Integer> values) {
            addCriterion("paper_model_choose_time in", values, "paperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseTimeNotIn(List<Integer> values) {
            addCriterion("paper_model_choose_time not in", values, "paperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseTimeBetween(Integer value1, Integer value2) {
            addCriterion("paper_model_choose_time between", value1, value2, "paperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelChooseTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("paper_model_choose_time not between", value1, value2, "paperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeTimeIsNull() {
            addCriterion("paper_model_judge_time is null");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeTimeIsNotNull() {
            addCriterion("paper_model_judge_time is not null");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeTimeEqualTo(Integer value) {
            addCriterion("paper_model_judge_time =", value, "paperModelJudgeTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeTimeNotEqualTo(Integer value) {
            addCriterion("paper_model_judge_time <>", value, "paperModelJudgeTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeTimeGreaterThan(Integer value) {
            addCriterion("paper_model_judge_time >", value, "paperModelJudgeTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("paper_model_judge_time >=", value, "paperModelJudgeTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeTimeLessThan(Integer value) {
            addCriterion("paper_model_judge_time <", value, "paperModelJudgeTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeTimeLessThanOrEqualTo(Integer value) {
            addCriterion("paper_model_judge_time <=", value, "paperModelJudgeTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeTimeIn(List<Integer> values) {
            addCriterion("paper_model_judge_time in", values, "paperModelJudgeTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeTimeNotIn(List<Integer> values) {
            addCriterion("paper_model_judge_time not in", values, "paperModelJudgeTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeTimeBetween(Integer value1, Integer value2) {
            addCriterion("paper_model_judge_time between", value1, value2, "paperModelJudgeTime");
            return (Criteria) this;
        }

        public Criteria andPaperModelJudgeTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("paper_model_judge_time not between", value1, value2, "paperModelJudgeTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}